package com.sc.nft.admin.request;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
@NoArgsConstructor
public class AddAdvertisementRequest {

    @ApiModelProperty("1 不跳转 2富文本 3内部连接 4外部连接")
    @NotNull(message = "类型不能为空")
    private Integer type;

    @ApiModelProperty("图片地址")
    @NotBlank(message = "图片地址不能为空")
    private String imgUrl;

    @ApiModelProperty("跳转内容")
    private String reUrl;

    @NotNull(message = "顺序不能为空")
    @ApiModelProperty("排序")
    private Integer rank;

    @ApiModelProperty("名称")
    @NotBlank(message = "名称不能为空")
    private String name;

    @ApiModelProperty("备注")
    private String remark;
}
